<?php
/**
 * Created by PhpStorm.
 * User: 13469
 * Date: 2018/12/8
 * Time: 10:32
 */
include "config.php";

if(isset($_REQUEST["utel"])){
    $UTEL=$_REQUEST["utel"];
    $sql="SELECT *FROM userinfo WHERE u_tel=?";
    $stmt=$conn->prepare($sql);
    $stmt->bind_param("s",$UTEL);

    $stmt->execute();
   $res=$stmt->get_result();
   if($res->num_rows>=1){
       print_r("false");
   }else{
       print_r("true");
   }
}else{
    print_r(json_encode(array("status"=>0,"msg"=>"请输入手机号")));
}